import request from '@/utils/request'

export const articlelist = (params) => {
  return request.get('/admin/interview/query', {
    params: params
  })
}

export const createArtice = (data) => {
  return request.post('/admin/interview/create', data)
}

export const removeArticle = (id) => {
  return request.delete('/admin/interview/remove', {
    data: { id }
  })
}

export const getArticleDetail = (id) => {
  return request.get('/admin/interview/show', {
    params: { id }
  })
}

export const undateArticle = (data) => {
  return request.put('/admin/interview/update', data)
}
